html, body {
height: 100%;
margin: 0;
padding: 0;
overflow-x: hidden;
}

#map {
    position: absolute;
    top: 0px; /* altura de la navbar */
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.custom-label {
    background-color: rgba(0, 0, 0, 0); 
    padding: 0px 5px; 
    font-size: 16px; 
    color: #ffffff; 
    text-align: center;  /* Alinea el texto al centro */
    max-width: 200px; 
    white-space: nowrap; 
    word-wrap: break-word;
    border: none; 
    box-shadow: none; 
}

.custom-predios {
  background-color: rgba(0, 0, 0, 0); 
  padding: 0px 5px; 
  font-size: 16px; 
  color: #ffffff; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px; 
  border: none; 
  box-shadow: none; 
  text-align: center;
}


.custom-cota {
    background-color: transparent !important;  
    border: transparent !important;
    color: #000000 !important;
    font-size: 16px !important;
    padding: 5px !important;
    border: none !important; 
    box-shadow: none !important; 
}

.custom-frente {
    background-color: transparent !important;  
    border: transparent !important;
    color: #ffffff !important;
    font-size: 16px !important;
    padding: 5px !important;
    border: none !important; 
    box-shadow: none !important; 
}


.custom-capa {
    background-color: rgba(0, 0, 0, 0); 
    padding: 0px 5px; 
    font-size: 16px; 
    color: #ff0000; 
    text-align: center;  /* Alinea el texto al centro */
    max-width: 200px; 
    white-space: normal; 
    word-wrap: break-word;
    border: none; 
    box-shadow: none; 
    text-shadow:
        -1px -1px 0 #ffffff,
         1px -1px 0 #ffffff,
        -1px  1px 0 #ffffff,
         1px  1px 0 #ffffff;
}

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 5%;
    width: 90%;
    background-color: #ffffffa8;
    z-index: 2000; /* más alto que el mapa */
    border-radius: 0 0 15px 15px;
    border: 2px solid rgb(0, 0, 0);
}

.navbar-container {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos bajen de línea si no caben */
    align-items: center;
    justify-content: center;
    text-align: left;
    z-index: 200;
}

.logo {
    max-height: 40px;
    max-width: 100%;
    height: auto;
}
.logo_ {
    max-height: 50px;
    max-width: 100%;
    height: auto;
}
.logo__ {
    max-height: 50px;
    max-width: 100%;
    height: auto;
}
.navbar-text {
    color: #3d863f;
    max-width: 100%;
}

.navbar-text h1 {
    font-size: 1rem;
    text-align: right;
}

.navbar-text h2 {
    font-size: 1rem;
    text-align: right;
}

.navbar-text h3 {
    font-size: 1rem;
    text-align: right;
}


.inline-title {
  display: inline;
  margin: 0;
  padding: 0;
}


* {
    box-sizing: border-box;
}



.fuente-arial {
  font-family: Arial, sans-serif;
}


main {
    margin-left: 0;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.leaflet-control-coords {
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    font-size: 12px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    color: #000;
}

.leaflet-control-draw-measure {
    background-image: url(..\images\measure-control.png);
}

.leaflet-top.leaflet-right {
    top: 110px !important; /* ajusta este valor según el alto real de tu navbar */
}

@media (max-width: 240px) {
  .logo__
  {
    display: none;
  }
}


@media (max-width: 750px) {
  .navbar-text h3 {
    display: none;
  }
}

@media (max-width: 1400px) {
  .navbar-text h1 {
    display: none;
  }
}

@media (max-width: 1640px) {
  .logo_
  {
    display: none;
  }
}

@media (max-width: 1850px) {
  .navbar-text h2 {
    display: none;
  }
}

.login-icon {
  position: absolute;
  top: 90px;;
  right: 310px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1999;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10%;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  border: 1px solid #000000be;
  padding: 6px;
  transition: all  0.3s ease;
}



/* Modal de login */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  width: 300px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  text-align: center;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
}

.modal-content button {
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
}

.close-btn {
  background-color: #aaa;
  color: white;
  border: none;
}

.custom-label-1 {
  color: rgb(0, 0, 0); 
  font-size: 15px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.info { 
  padding: 6px 8px; 
  font: 14px/16px Arial, Helvetica, sans-serif; 
  background: #ffffff9a; 
  box-shadow: 0 0 15px rgba(0,0,0,1); 
  border-radius: 5px; } 
  
.info h4 { 
  margin: 0 0 5px; 
  color: #000000; 
}
		
.legend { 
  text-align: left; 
  line-height: 15px; 
  color: #272727; 
} 

.legend i { 
  width: 10px; 
  height: 10px; 
  float: left; 
  vertical-align: middle;
  margin-right: 8px; 
  margin-bottom: 4px;
  opacity: 1; 
}

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #222;
  color: #fff;
}

.sidebar-menu {
  position: absolute;
  top: 90px; /* debajo de la navbar */
  left: 0;
  width: 300px;
  height: calc(100% - 150px);
  display: flex;
  background-color: #000000be;
  z-index: 1500;
  font-family: Arial, sans-serif;
  border-radius: 10px;  
  transition: transform 0.3s ease;
  bottom: 0;
  border: 1px solid white;
}

/* Chrome, Edge, Safari */
.tab-contents::-webkit-scrollbar {
  width: 6px; /* ancho de la barra */
}

.tab-contents::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 50px; /* Aumenta el valor para que se vea más redondeado */
  border: 1px solid #ccc;
}

.tab-contents::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 50px; 
}

.tab-buttons {
  display: flex;
  flex-direction: column;
  background-color: #0000009a;
  color: white;
  border-right: 1px solid #c4c2c2;
  color: #ffffff;
  width: 50px;
  padding-top: 1px;
  overflow-y: auto; 
  max-height: 100vh; 
}

/* Scroll personalizado para sidebar */
.tab-buttons::-webkit-scrollbar {
  width: 2px;
}

.tab-buttons::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 50px;
  color: #ffffff;
  border: 1px solid #ccc;
}

.tab-buttons::-webkit-scrollbar-track {
  color: #ffffff;
  background: #f0f0f0;
  border-radius: 50px;
}


.tab-btn {
  background-color: transparent;
  color: #ffffff;
  border: none;
  padding: 15px;
  font-size: 18px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s;
  flex-shrink: 0;          /* Evita que se achiquen */
}

.tab-btn:hover,
.tab-btn.active {
  background-color: #0b5f0da1;
}

.tab-contents {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


.titulo {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
  font-style: italic;
}

.tituloInfo {
  color: #ffffff;
  font-size: 10px;
  margin-bottom: 20px;
  text-align: justify;
}

.tituloEncabezado {
  background-color: white;
  color: green;
  font-size: 15px;
  width: 100%; 
  display: block;       
  padding: 8px;
  box-sizing: border-box;
}
.categoria {
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #ffffff65;
  padding-bottom: 5px;
  font-size: 15px;
  font-style: italic;
}
.categoria-linea {
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  margin: 8%;
  margin-top: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #ffffff;
  padding-bottom: 5px;
  font-size: 15px;
  font-style: italic;
}

.contador {
  float: right;
  color: #ffffff9a;
}

.lista-apoyos {
  display: none;
  padding-left: 2px;
  margin: 0;
}

.lista-apoyos li {
  display: flex;
  align-items: start;
  margin-bottom: 12px;
  font-size: 13px;
  color: #ffffff;
  font-style: italic;
  font-weight: bold;
}

/* Menú superior */
.categoria-super {
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  border-bottom: 1px solid #ffffff;
  padding: 10px 5px;
  font-style: italic;
  color: #ffffff;
}

.categoria-titulo {
  font-weight: bold;
  font-size: 20px;
  border-bottom: 1px solid #ffffff;
  padding: 10px 5px;
  color: #ffffff;
}

.categoria-subtitulo {
  font-weight: bold;
  font-size: 12px;
  padding: 10px 5px;
  color: #ffffff;
  margin-top: 5px;
}

.caret {
  float: right;
  font-size: 12px;
  color: #ff0000;
}

/* Ocultamos el contenido al inicio */
.contenido-super {
  display: none;
  padding: 10px 0;
  border-left: 1px solid #ffffff11;
  padding-left: 10px;
}

.icono {
  margin-right: 10px;
  color: #ffffff9a;
  font-size: 16px;
  margin-top: 2px;
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 5px;
}

.tab-btn {
  background-color: #00000000;
  border: none;
  color: #000;
  padding: 40% 10%;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  color: #fff;
  transition: background 0.3s;
}

.tab-btn.active {
  background-color: #0b5f0da1;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.categoria.activa + .lista-apoyos {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.custom-text {
  margin: 0;
  white-space: nowrap; /* evita que se parta más */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.layer-toggle-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox {
  width: 13px;
  height: 13px;
  border: 2px solid #555;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  font-size: 13px;
}

.checkbox.checked::after {
  content: "✔";
  color: rgb(0, 0, 0);
  line-height: 1;
}

/* Oculta el checkbox real */
.circle-checkbox input[type="checkbox"] {
  display: none;
}

.sidebar-collapsed {
  transform: translateX(-100%);
}

#sidebarToggle {
  position: fixed;
  top: 50%;
  left: 300px;
  transform: translateY(-50%);
  width: 10px;
  height: 10%;
  background-color: rgba(253, 253, 253, 0.616);
  border-radius:  0 5px 5px 0;
  border: 2px solid #000000be;
  cursor: pointer;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.3s ease;
}

/* Triángulo siempre apuntando a la derecha inicialmente */
#sidebarToggle .triangle {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid black;
  transition: transform 0.3s ease;
}

/* Giramos el triángulo 180 grados cuando está colapsado */
#sidebarToggle.collapsed .triangle {
  transform: rotate(180deg);
}


.sidebar-collapsed + #sidebarToggle {
  left: 0;
}

#sidebarToggle {
  z-index: 5000; /* o incluso 9999 si hace falta */
}

/* Estilo para botones del control de zoom */
.leaflet-control-zoom a {
  background-color: rgba(253, 253, 253, 0.616);
  border: 1px solid #303030;
}

.leaflet-control-layers {
  transform: scale(0.7);  /* Reduce tamaño general a 80% */
  transform-origin: top right; /* Mantiene la esquina como punto de escala */
}
.leaflet-control-layers-expanded {
  left: auto !important;
  right: 0 !important;
  text-align: right;
}

.leaflet-top.leaflet-left {
  top: 100px; /* debajo de la navbar */
  left: 300px; /* el ancho de la sidebar */
  transition: left 0.3s ease;
  z-index: 2000;
}

body.sidebar-collapsed .leaflet-top.leaflet-left {
  left: 20px !important;
}


.sidebar-legend {
  position: absolute;
  top: 90px; /* debajo de la navbar */
  right: 0;
  width: 300px;
  height: calc(100% - 150px); /* deja espacio inferior si tienes controles */
  overflow-x: hidden; /* 👈 evita desbordes laterales */
  display: flex;
  flex-direction: column;
  background-color: #000000be;
  z-index: 1500;
  font-family: Arial, sans-serif;
  border-radius: 10px;
  transition: transform 0.3s ease;
  bottom: 0;
  box-sizing: border-box;
  /* borde blanco */
  border: 1px solid white;
}

/* Scroll personalizado para sidebar */
.sidebar-legend::-webkit-scrollbar {
  width: 1px;
}

.sidebar-legend::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 50px;
  border: 1px solid #ccc;
}

.sidebar-legend::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 50px;
}


.legend-collapsed {
  transform: translateX(100%);
}

#legendToggle {
  position: fixed;
  top: 50%;
  right: 300px;
  transform: translateY(-50%);
  width: 10px;
  height: 10%;
  background-color: rgba(253, 253, 253, 0.616);
  border-radius:  5px 0 0 5px ;
  border: 2px solid #000000;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right  0.3s ease;
}

/* Triángulo siempre apuntando a la derecha inicialmente */
#legendToggle .triangle {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid black;
  transition: transform 0.3s ease;
}

/* Giramos el triángulo 180 grados cuando está colapsado */
#legendToggle.collapsed .triangle {
  transform: rotate(180deg);
}

.legend-collapsed + #legendToggle {
  right: 0;
}

#legendToggle {
  z-index: 2001; 
}

#custom-legend-LimEdo {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-LimEdo i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-LimMun {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-LimMun i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-Cerucho {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-Cerucho i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend {
  margin: 0 auto;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 5px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;  
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-Par {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-Par i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-Per {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-Per i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}


#custom-legend-AfectPP {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-AfectPP i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-Bloques {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-Bloques i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-PPP {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-PPP i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-SPP {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-SPP i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-Frentes {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 350px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-Frentes i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-Encadenamiento {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 350px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-Encadenamiento i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-Cotas {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-Cotas i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-Infra {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 400px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-Infra i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}

#custom-legend-DDV {
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 10px;
  background: rgba(255, 255, 255, 0);
  font-size: 14px;
  line-height: 18px;
  color: #ffffff;
  height: auto; /* que crezca según su contenido */
  max-height: 200px; 
  width: 95%;
  border: 1px solid #747474;
  border-radius: 10px; 
}

#custom-legend-DDV i {
  width: 12px;
  height: 12px;
  float: left;
  margin-right: 8px;
  opacity: 0.8;  
  vertical-align: middle;
}
.layer-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between; /* texto a la izquierda, botón a la derecha */
  padding: 4px 8px;
  gap: 8px;
}

.layer-label {
  flex-grow: 1; /* ocupa el espacio entre el checkbox y el botón */
}

.descargar-btn {
  color: black;         
  text-decoration: none; 
  width: 13px;
  height: 13px;
  background: white;
  border: 1px solid #747474;
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mostrar-tabla {
  color: black;
  position: absolute;
  top: 100px; /* Ajusta según el espacio que ocupe tu navbar */
  right: 20px; /* Puedes cambiar a left: 20px si lo prefieres a la izquierda */
  z-index: 9999; /* Para que esté encima del mapa */
  background-color: white;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

#contenedor-tabla {
  position: absolute;
  top: 150px;
  right: 10%;
  left: 10% !important;
  max-height: 70% !important;
  max-width: 80%;
  overflow: auto;
  background-color: white;
  padding: 10px;
  border: 1px solid #ccc;
  z-index: 9999;
  display: none; /* oculto por defecto */
}

#filtro-nomna {
  margin: 5px 0 10px 10px;
  padding: 5px;
  font-size: 13px;
}

.btn-download{
    margin-left:8px;
    border:none;
    background:#000000ba;
    color:white;
    cursor:pointer;
}

.btn-download:hover{
    background:#1B4F72;
}


#mostrar-tabla {
  position: absolute;
  width: 30px;      /* tamaño del botón */
  height: 30px;
  top: 230px; /* Ajusta este valor según la altura de los controles */
  left: 310px ; /* Igual que la sidebar abierta */
  z-index: 9999;
  background-color: rgba(253, 253, 253, 0.616);
  border: 1px solid #303030;
  border-radius: 4px;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
  transition: left 0.3s ease;
}

#mostrar-tabla:hover {
  background-color: white !important; /* Cambia el fondo al pasar el cursor */
}

/* Líneas horizontales */
#mostrar-tabla::before,
#mostrar-tabla::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  height: 1px;
  background: black;
}

#mostrar-tabla::before {
  top: 8px;
}

#mostrar-tabla::after {
  top: 20px;
}

/* Líneas verticales */
#mostrar-tabla div {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 1px;
  background: black;
}

#mostrar-tabla div:nth-child(1) {
  left: 8px;
}

#mostrar-tabla div:nth-child(2) {
  left: 20px;
}

/* Cuando la sidebar esté colapsada */
body.sidebar-collapsed #mostrar-tabla {
  left: 10px; /* Mismo desplazamiento que los controles en sidebar colapsada */
}

